package gatperdut.chato.constants;

public final class CSConstantsCommandResult {

    public static enum LoginResult {
        LOGIN_SUCCESFUL, CONTINUE_LOGGING, KICKED_OUT_TOO_MANY_ATTEMPTS, KICKED_OUT_ALREADY_LOGGED, ASKED_TO_QUIT
    };

    public static enum CheckLoginResult {
        NON_MATCHING, MATCHING, ALREADY_LOGGED
    };

    public static enum CommandExecutionResult {
        OK(false), LOGIN_PASSWORD_NON_MATCHING(false), LOGIN_PASSWORD_MATCHING(false), QUIT_CONNECTION_DROP(true), QUIT_COMMITTED_SUICIDE(true), QUIT_KICKED_OUT(true), QUIT_LOGOUT(
                true), QUIT_LOGIN_ALREADY_LOGGED(true), QUIT_LOGIN_MAX_ATTEMPTS(true), QUIT_INSANITY(true), QUIT_TO_MAIN_MENU(true), MAIN_MENU_ENTER_GAME(false);

        private boolean quit;

        private CommandExecutionResult( boolean quit ) {
            this.quit = quit;
        }

        public boolean getQuit() {
            return quit;
        }
    };

}
